package com.mongodb.document.test;

import com.alibaba.fastjson.JSONObject;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

@Data
@Document(collection = "book")
public class Book {
    @Id
    private String id;
    private String title;
    private JSONObject author;
}
